package gui;


import java.awt.Graphics;

import core.Main;

public class Submenu implements DropDownMenuObj{
	protected String name;
	protected DropDownMenu menu;
	
	public Submenu(String name, DropDownMenu menu) {
		this.name = name;
		this.menu = menu;
	}
	
	public DropDownMenu getSubMenu() {
		return menu;
	}

	@Override
	public void draw(Graphics g, int x, int y, int w, int h) {
		g.drawString(name, x, y + g.getFont().getSize());
	}

	@Override
	public void trigger() {
		return;
	}
}